package com.bw.shop_2302

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.alibaba.android.arouter.facade.annotation.Route
import com.bw.base.mvvm.BaseViewActivity
import com.bw.shop_2302.databinding.ActivityShopBinding

//电商主页
@Route(path = "/app/ShopActivity")
class ShopActivity : BaseViewActivity<ActivityShopBinding>() {

    override fun initView() {

        //找到导航宿主
        val navHostFragment =
            supportFragmentManager.findFragmentById(R.id.fragmentContainerView) as NavHostFragment

        //找到导航器
        val navController = navHostFragment.navController

        //和底部联动
        binding.bottom.setupWithNavController(navController)


    }

    override fun initData() {




    }

    override fun getLayoutID(): Int = R.layout.activity_shop

}